﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BookShop.BLL;

namespace BookShop2
{
    public partial class BookList : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Request.QueryString["cateid"]!=null)
                {
                    int cateid =Convert.ToInt32( Request.QueryString["cateid"]);
                    string catename = Request.QueryString["catename"].ToString();
                   Label1.Text ="图书类别："+ catename;
                    //Response.Write(cateid);
                    rptBooks.DataSource = BooksBLL.GetBookList(cateid);
                    rptBooks.DataBind();
                }
            }
        }
    }
}